import { createRouter, createWebHashHistory } from 'vue-router'

import index from './components/index'
import goods from "@/components/goods"

// 创建路由实例对象
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        { path: '/', name:'index',component:index },
        { path: '/goods', name:'goods',component:goods }
    ],
})

export default router
